package lesson08;

/**
 * 自定义异常
 */
public class LovoException extends Exception{
    private int errorCode;
    private String errorMessage;
    private String info = "成都朗沃教育";
    public LovoException(){

    }
    public LovoException(int errorCode,String errorMessage){
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }
    public String getMessage(){
        return info + ":"+errorCode + ","+errorMessage;
    }
}
